@import "basescss/mixins";
@import "basescss/var";

@include b(dialog) {
    position: relative;
    min-width: 180px;
    min-height: 49px;
    left: 0;
    top: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.07);

    .run-dialog-header {
        position: relative;
        z-index: 100;
        height: 49px;
        line-height: 49px;
        text-align: center;
        overflow: hidden;
        border-bottom: 1px solid #ddd;
        background: #fff;
        -ms-box-sizing: content-box;
        -webkit-box-sizing: content-box;
        box-sizing: content-box;

        .run-dialog-header-btns {
            position: absolute;
            z-index: 3;
            left: 0;
            height: 49px;
            box-sizing: border-box;
        }

        .run-dialog-header-close {
            margin-left: 10px;
            margin-right: 18px;
            float: right;
            box-sizing: border-box;

            &>span {
                display: inline-block;
                width: 16px;
                height: 16px;
                vertical-align: middle;
                cursor: pointer;
            }
            &>span:hover {
                background-color: #f1f1f1;
            }

            .dialog-btns-min {
                background: url('#{$--image-path}/min-btn.png') no-repeat center;
            }
            
            .run-dialog__reset {
                background: url('#{$--image-path}/reset-dialog-btn.png') no-repeat center;
            }
            
            .run-dialog__max {
                background: url('#{$--image-path}/max-btn.png') no-repeat center;
            }
            
            .run-dialog__close {
                background: url('#{$--image-path}/close-btn.png') no-repeat center;
            }
        }

        .run-dialog-header-title {
            float: left;
            width: calc(100% - 90px);
            height: 49px;
            margin: auto;
            padding-left: 90px;
            font-size: 14px;
            text-align: center;
            overflow: hidden;
            line-height: 49px;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: move;
            box-sizing: border-box;

            &.nomove {
                cursor: default;
            }
        }
    }
    .run-dialog-body {
        margin-top: -30px;
        padding-top: 30px;
        height: calc(100% - 50px);
        overflow: auto;

        &.max-class {
            max-height: calc(100% - 80px)!important;
        }
        .run-waring-tip {
            width: 100%;
            font-size: 14px;
            color: #ff8330;
            background: #FEF6EA;
            display: flex;
            align-items: flex-start;
            padding: 10px 0 10px 22px;

            .el-icon-warning {
                color: #E6A23C;
                margin-right: 10px;
            }
            label {
                width: calc(100% - 48px);
                line-height: 18px;
            }
            i {
                float: right;
                cursor: pointer;
                margin-top: 2px;
                color: #4b5c64;
            }
        }
    }

    .run-dialog-footer {
        position: relative;
        z-index: 5;
        bottom: 0;
        width: 100%;
        padding-top: 12px;
        padding-bottom: 15px;
        text-align: center;
        line-height: 30px;
        border-top: 1px solid #eee;
        background: #fff;
    }

    @include e(wrapper) {
        display: none;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);

        &.active {
            display: block;
        }
        &.current-dialog {
            z-index: 105;
        }
    }
}

.dialog-move-box{
	display: none;
	position: absolute;
	min-width: 180px;
	min-height: 49px;
	left: 0;
	top: 0;
	z-index: 1000;
	border: 3px solid #ddd;
	border-radius: 5px;
	box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.07);
	cursor: move;

    &.active{
        display: block;
    }
}
